home *** CD-ROM | disk | FTP | other *** search
- Subject: Re:RE>Hiliting and system hilite colour in ODF?
- Sent: 7/10/96 8:09 AM
- Received: 7/10/96 8:46 AM
- From: Greg Friedman, friedman@cognosis.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Rob Cope wrote:
- > Date:
- >7/10/96
- > Subject: RE>Hiliting and system hilite colour in ODF? Time:
- >9:18 AM
- > I haven't found a way to do it in ODF either. In fact, I can't even find
- >how to do it without poking around in the GrafPort. Here is what I do,
- >which works, but I would love to have a better way.
- >
- > #if defined(FW_BUILD_MAC)
- > GrafPtr curPort;
- > ::GetPort(&curPort);
- > FW_CColor hColor
- >(((GrafVars*)*((CGrafPort*)curPort)->grafVars)->rgbHiliteColor);
- > #else
- > FW_Color hColor = FW_kRGBBlack;
- > #endif
-
- I would use LMGetHiliteRGB, as Serge suggested. If you want to use this
- method, you can get to the current port by looking directly at
-
- FW_QDGlobals.thePort
-
- FW_QDGlobals is defined in FWStdDef.h.
-
- Greg.
-
-
- _________________________________________________________
- Greg Friedman ODF Engineering Apple Computer
-
-
-